package com.zq.it.service.exam;

import java.util.List;

import com.zq.it.pojo.Teacher;
import com.zq.it.pojo.exam.TCourseWare;
import com.zq.it.service.BaseService;

public interface CourseWareService extends BaseService {
	/**
	 * 上传的课件信息导入数据库
	 * 
	 * @param cware
	 */
	public void addCourseWare(TCourseWare cware);

	/**
	 * 获取要下载的资料信息
	 * 
	 * @return
	 */
	public TCourseWare getCourseWare(Long id);

	/**
	 * 删除资料
	 * 
	 * @param ids
	 * @param path
	 */
	public void deleteCourseWare(Long[] ids, String path, Teacher teacher);

	/**
	 * 获取老师
	 * 
	 * @param name
	 * @return
	 */
	public List getTeacherByName(String name);

	/**
	 * 创建多条件查询语句
	 * 
	 * @param courseWare
	 * @return
	 */
	public String createCourseWareHql(TCourseWare courseWare);

	/**
	 * 创建学生查询课件语句
	 * 
	 * @param courseWare
	 * @return
	 */
	public String createStudentHql(TCourseWare courseWare);
}
